﻿<%@ Page Title="Nouveau sujet" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="NewTopic.aspx.cs" Inherits="WeakEndForum.NewTopic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div class="container">
        <div class="page-header">
            <span class="h2 RalewayFont"><span class="glyphicon glyphicon-pencil"></span> Nouveau sujet</span>
        </div>
        <p>Titre</p>
        <asp:RequiredFieldValidator ID="valRequieredNewTopicTitle" ValidationGroup="NewTopicValidation" ErrorMessage="Un titre est obligatoire." ControlToValidate="txtNewTopicTitle" Display="None" runat="server"  />
        <asp:TextBox CssClass="form-control inputBottomMargin" ValidationGroup="NewTopicValidation" ID="txtNewTopicTitle" placeholder="Titre du sujet" runat="server" />
        <p>Message</p>
        <asp:RequiredFieldValidator ID="valRequieredNewTopicContent" ValidationGroup="NewTopicValidation" ErrorMessage="Un message est obligatoire." ControlToValidate="txtNewTopicContent" Display="None" runat="server" />
        <asp:TextBox CssClass="form-control textarea" ValidationGroup="NewTopicValidation" TextMode="MultiLine" id="txtNewTopicContent" placeholder="Entrer du contenu..." runat="server" />
        <asp:ValidationSummary ID="validationSummNewTopic" CssClass="alert alert-danger" ValidationGroup="NewTopicValidation" DisplayMode="BulletList" runat="server" />
        <asp:Button ID="btnNewTopic" CssClass="btn btn-primary" ValidationGroup="NewTopicValidation" OnClick="btnNewTopic_Click" Text="Envoyer" runat="server" />
    </div>
    
</asp:Content>
